import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import router from './router'
import Antd from 'ant-design-vue'
import 'ant-design-vue/dist/reset.css'
// 权限校验的
import '@/auth/access.ts'
import  piniaPluginPersistedstate  from 'pinia-plugin-persistedstate'
// 颜色选择器
import Vue3ColorPicker from "vue3-colorpicker";
import "vue3-colorpicker/style.css";
// 图片裁剪器
import VueCropper from 'vue-cropper';
import 'vue-cropper/dist/index.css'
// echarts
import VChart from "vue-echarts";
import "echarts";


const app = createApp(App)
const pinia = createPinia()
// pinia开启持久化插件
pinia.use(piniaPluginPersistedstate)
app.use(pinia)
app.use(Vue3ColorPicker)
app.use(VueCropper)
app.use(router)
app.use(Antd)
// 全局注册echarts组件
app.component('VChart', VChart)
app.mount('#app')
